package com.yztc.orangeentertainment.ui.main.subscribefragment.staritem.starfeedfragment;

import android.content.Context;
import android.os.Handler;

import com.yztc.orangeentertainment.base.IModle;
import com.yztc.orangeentertainment.base.IPresenter;
import com.yztc.orangeentertainment.base.IView;
import com.yztc.orangeentertainment.bean.channalbean.ListBean;
import com.yztc.orangeentertainment.bean.staritembean.FeedBean;
import com.yztc.orangeentertainment.bean.staritembean.FeedListBean;
import com.yztc.orangeentertainment.ui.main.subscribefragment.staritem.starnewsfragment.OnLoadNewsListener;

import java.util.List;
import java.util.Map;

/**
 * Created by My on 2016/10/9.
 */
public class FeedContract {
    public interface View extends IView {
        //发送到adapter
        public void onLoadStarFeedSuccess(List<FeedListBean> list);
        //加载数据失败
        public void onLoadStarFeedFail(String msg);
    }
    public interface Modle extends IModle {
        //得到list
        public void getStarFeedAll( String sid,int page,Context context, OnLoadFeedListener loadFeedListener);
        //获得数据库
//        public void getStarFeedFromDb(Subscriber<List<NewsListBean>> subscriber);
    }
    public interface Presenter extends IPresenter {
        //从网络获取数据
        public void getStarFeedFromNet( String sid,int page,Context context);
//        public void  getStarFromDb();
    }
}
